<template>
  <div class="container">
    <button @click="emit('update')">子组件emit按钮</button>
  </div>
</template>

<script setup>
const emit = defineEmits(['update']);
const props = defineProps({
  config1: {
    type: String,
    required: false,
  },
  config2: {
    type: Number,
    required: false,
    default: 0,
  },
});
console.log(props);
const exampleExpose = '1111111';
defineExpose({
  exampleExpose,
});
</script>
